/*
 *   Copyright 1999-2016 Asiainfo Technologies(China),Inc.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 *
 */

package com.asiainfo.redis.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.util.Date;

/**
 * @version v 1.0 on 2016/8/11 17:17
 * @auther william.xu
 */
@Entity
@Table(name="REDIS_BUSI_DATA_CHANGE")
@SequenceGenerator(name="REDIS_BUSI_DATA_CHANGE_SEQ_",sequenceName="REDIS_BUSI_DATA_CHANGE_SEQ",allocationSize=1)
public class BusiDataChange {

    @Id
    @GeneratedValue(strategy= GenerationType.SEQUENCE,generator="REDIS_BUSI_DATA_CHANGE_SEQ_")
    @Column(name = "ID")
    private Long id;

    @Column(name = "BUSI_DATA_RULE_ID")
    private Long busiDataRuleId;

    @Column(name="SQL_CONDITION")
    private String sqlCondition;

    @Column(name="OPER_FLAG")
    private Integer operFlag;

    @Column
    private Integer status;

    @Column(name = "ERROR_MSG")
    private String errorMsg;

    @Column(name="UPDATE_TIME")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBusiDataRuleId() {
        return busiDataRuleId;
    }

    public void setBusiDataRuleId(Long busiDataRuleId) {
        this.busiDataRuleId = busiDataRuleId;
    }

    public String getSqlCondition() {
        return sqlCondition;
    }

    public void setSqlCondition(String sqlCondition) {
        this.sqlCondition = sqlCondition;
    }

    public Integer getOperFlag() {
        return operFlag;
    }

    public void setOperFlag(Integer operFlag) {
        this.operFlag = operFlag;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
